/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.processing.prediction.recalc;

/**
 *
 * @author nastya
 */
public class UserDistance {

    private String userId;
    private double distance;

    public UserDistance(String userId, double distance) {
        this.userId = userId;
        this.distance = distance;
    }

    public double getDistance() {
        return distance;
    }

    public String getUserId() {
        return userId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UserDistance other = (UserDistance) obj;
        if ((this.userId == null) ? (other.userId != null) : !this.userId.equals(other.userId)) {
            return false;
        }
        return true;
    }

}
